#!/bin/bash
#========================================================================
# Author: YSLin
# Email: 
# File Name: while.sh
# Description: 
#   
# Edit History: 
#   2011-03-28    File created.
#========================================================================
#set separator as ':' to parse /etc/passwd, then read will use ':' to 
#separate string 
while IFS=: read userName passWord userID groupID geCos homeDir userShell
do
      echo "$userName -> $homeDir"
done < /etc/passwd

